﻿Public Class Formulario

    'Cambio color de la letra
    Private Sub btn_azul_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_azul.Click
        Me.lab_holamundo.ForeColor = Color.Blue
    End Sub

    Private Sub btn_amarillo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_amarillo.Click
        Me.lab_holamundo.ForeColor = Color.Yellow
    End Sub
    'cambio color del fondo
    Private Sub btn_verde_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_verde.Click
        Me.lab_holamundo.BackColor = Color.Green
    End Sub

    Private Sub btn_rosa_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_rosa.Click
        Me.lab_holamundo.BackColor = Color.Pink
    End Sub

    'Cambiamos alineación texto Hola mundo
    Private Sub btn_izquierda_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_izquierda.Click
        Me.lab_holamundo.Dock = DockStyle.Left

    End Sub

    Private Sub btn_centro_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_centro.Click
        Me.lab_holamundo.Dock = Me.lab_holamundo.Dock = DockStyle.Fill
    End Sub

    Private Sub btn_derecha_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_derecha.Click
        Me.lab_holamundo.Dock = Me.lab_holamundo.Dock = DockStyle.Right
    End Sub
End Class
